package  com.yobertjomi.plugin

import org.gradle.api.Plugin
import org.gradle.api.Project

public class FirstPlugin implements Plugin<Project> {

    void apply(Project project) {
        System.out.println("========================");
        System.out.println("hello gradle plugin!");
        System.out.println("========================");

        //这里实现plugin的逻辑
        //巴拉巴拉巴拉
        println "hello, this is FirstPlugin!"
        //cooker-plugin
        //比如这里加一个简单的task
        project.task('first-plugin-task') << {
            println "hello, this is FirstPlugin test task!"
        }
    }
}